// 这里做了一个映射，将模块下面的一些属性/状态直接映射到全局
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token : state => state.user.token,  //在根级的getters上 开发子模块的属性给别人看 给别人用
  name : state => state.user.userInfo.username,
  userId : state => state.user.userInfo.userId,
  staffPhoto:state => state.user.userInfo.staffPhoto,
  companyId : state => state.user.userInfo.companyId,
  // 补写一个对routes的快捷访问
  routes: state => state.permission.routes
}
export default getters
